<?php
/**
 * 定义f:textarea控件
 *
 * @package if
 * @subpackage module.ui
 * @since 1.1.0
 */
class UIFormTextarea extends UIFormElement {
	protected $tpl = "form_textarea";
	
	function render() {
		if ($this->attr("value")) {
			$this->addTplVar("value", $this->attr("value"));
		}
		else {
			$this->addTplVar("value", $this->content());
		}
		$this->reserveAttrs[] = "value";
		return parent::render();
	}
}

?>